import 'package:flutter/material.dart';
import 'package:flutter_note/note/page_book_add.dart';
import 'package:flutter_note/note/page_home.dart';
import 'package:flutter_note/note/page_loading.dart';
import 'package:flutter_note/note/page_login.dart';
import 'package:flutter/services.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle.dark);
    return MaterialApp(
      title: '我的日记',
      theme: ThemeData(
        primaryColor: Colors.white,
        //primarySwatch: Colors.green,
        accentColor: Colors.green,
        cursorColor: Colors.green,
      ),
      home: SplashPage(),
      //home: TestViewsPage()
      /*routes: <String, WidgetBuilder>{
        '/loading': (BuildContext context) => LoadingPage(),
        '/login': (BuildContext context) => LoginPage(),
        '/home': (BuildContext context) => HomePage(),
        '/addbook': (BuildContext context) => AddBookPage(),
      },*/
    );
  }
}